package club.guadazi.wemarket.service.impl;

import club.guadazi.wemarket.dao.OrderMapper;
import club.guadazi.wemarket.entity.OrderDTO;
import club.guadazi.wemarket.service.OrderService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by Mariaaron on 16/9/4.
 */
@Service
public class OrderServiceImpl implements OrderService {
    @Resource
    private OrderMapper orderMapper;

    @Override
    public List<OrderDTO> allOrders() {
        List<OrderDTO> orderDTOs = orderMapper.getAllOrders();
        return orderDTOs;
    }
}
